Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 4 - Geometric Objects / Geometric Objects Reference
Data Structures


Rays

QuickDraw 3D defines a ray as a point of origin and a direction. A ray is defined by the TQ3Ray3D data type. Figure 4-9 shows a ray.

Figure 4-9 A ray

typedef struct TQ3Ray3D {
   TQ3Point3D                 origin;
   TQ3Vector3D                direction;
} TQ3Ray3D;
Field Description
origin
The origin of the ray.
direction
The direction of the ray.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996